
IF(USE_TENSOR_RT AND ENABLE_MODULE_IRRLICHT AND ENABLE_MODULE_VEHICLE)

  #--------------------------------------------------------------
  # Additional include paths

  # INCLUDE_DIRECTORIES( ${CH_IRRLICHTINC} )

  #--------------------------------------------------------------
  IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    SET (CH_LINKERFLAG_EXE  "${CH_LINKERFLAG_EXE} -framework IOKit -framework Cocoa -framework OpenGL")
  ENDIF()

  #--------------------------------------------------------------

  # Add executables

  MESSAGE(STATUS "RL inference demo...")

  INCLUDE_DIRECTORIES(${CH_IRRLICHTINC})

  ADD_EXECUTABLE(demo_SEN_rl_infer
    demo_SEN_rl_infer.cpp
    InferenceDriver.cpp)

  SOURCE_GROUP(""  FILES  "demo_SEN_rl_infer.cpp
    InferenceDriver.cpp
    InferenceDriver.h
  ")

  # Visual Studio needs to have the debugger working directory set explicitly to the output directory
  # (specifically, so that the data directory is found when running demos in the debugger)
  IF(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
  set_property(TARGET demo_SEN_rl_infer PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "$(OutputPath)")
  ENDIF()

  SET_TARGET_PROPERTIES(demo_SEN_rl_infer  PROPERTIES
    FOLDER demos
    COMPILE_FLAGS "${CH_CXX_FLAGS} ${CH_SENSOR_CXX_FLAGS} ${CH_IRRLICHT_CXX_FLAGS}"
    LINK_FLAGS "${CH_LINKERFLAG_EXE}"
    )
  TARGET_LINK_LIBRARIES(demo_SEN_rl_infer
    ChronoEngine
    ChronoEngine_sensor
    ChronoEngine_irrlicht
    ChronoEngine_vehicle
    ChronoEngine_vehicle_irrlicht
    ChronoModels_vehicle
    )
  ADD_DEPENDENCIES (demo_SEN_rl_infer
      ChronoEngine
      ChronoEngine_sensor
      ChronoEngine_irrlicht
      ChronoEngine_vehicle
      ChronoEngine_vehicle_irrlicht
      ChronoModels_vehicle
  )


  INSTALL(TARGETS demo_SEN_rl_infer DESTINATION ${CH_INSTALL_DEMO})

ENDIF()
